package com.yan.storage;

import com.yan.bo.RequestInfo;

import java.util.List;
import java.util.Map;

/**
 * @author yanheng
 * @data 2020/1/16 18:03
 */
public interface MetricsStorage {
    void saveRequestInfo(RequestInfo requestInfo);
    List<RequestInfo> getRequestInfos(String apiName, long startTimeInMillis, long endTimeInMillis);
    Map<String, List<RequestInfo>> getRequestInfos(long startTimeInMillis, long endTimeInMillis);
}
